<template>
  <el-button
    :loading="loading"
    class="refresh-button"
    :loading-icon="RefreshRight"
    :icon="RefreshRight"
    plain
    type="primary"
    @click="emit('click')"
  ></el-button>
</template>

<script setup lang="ts">
import { RefreshRight } from '@element-plus/icons-vue'
interface IProps {
  loading: boolean
}
interface IEmits {
  (event: 'click'): void
}

defineProps<IProps>()
const emit = defineEmits<IEmits>()
</script>
